home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 22 / Amiga Format AFCD22 (Jan 1998, Issue 106).iso / -screenplay- / utilities / hd_installers / rickdangerousii / install-rickdangerousii < prev    next >
Text File  |  1997-11-05  |  2KB  |  109 lines

  1. ;----------------------------
  2.  
  3. ;try to figure out a place where the user usually installs his games
  4. (if (exists "Games:" (noreq) )
  5.     (set @default-dest "Games:")
  6.     (if (exists "SYS:Games" (noreq) )
  7.         (set @default-dest "SYS:Games")
  8.         (if (exists "Work:Games" (noreq) )
  9.             (set @default-dest "Work:Games")
  10.             (if (exists "JEUX:" (noreq) )
  11.                (set @default-dest "JEUX:")
  12.                (set @default-dest "SYS:")
  13.             )
  14.         )
  15.     )
  16. )
  17.  
  18.  
  19. (set @default-dest
  20. (askdir
  21.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  22.     (help @askdir-help)
  23.     (default @default-dest)
  24.     (disk)
  25. )
  26. )
  27.  
  28. (set #dest (tackon @default-dest @app-name))
  29. (set #CI_unit
  30.     (askchoice
  31.         (prompt "From which disk unit do you want\nto install the game")
  32.         (help    @askoptions-help)
  33.         (choices
  34.            "DF0:"
  35.            "DF1:"
  36.            "DF2:"
  37.            "DF3:"
  38.         )
  39.     )
  40. )
  41.  
  42. (set #CI_drive ("DF%ld:" #CI_unit))
  43.  
  44. (set #Rickd2_ver
  45.     (askchoice
  46.         (prompt "From which disk unit do you want\nto install the game")
  47.         (help    @askoptions-help)
  48.         (choices
  49.            "Rick Dangerous II - Full priced"
  50.            "Rick Dangerous II - Budget (Kixx)"
  51.         )
  52.     )
  53. )
  54.  
  55. (makedir #dest
  56.     (help @makedir-help)
  57.     (infos)
  58. )
  59.  
  60. ;----------------------------
  61.  
  62. (if (= #Rickd2_ver 0)
  63. (copyfiles
  64.     (help @copyfiles-help)
  65.     (source "RickDangIIHD")
  66.     (dest #dest)
  67. ))
  68. (if (= #Rickd2_ver 1)
  69. (copyfiles
  70.     (help @copyfiles-help)
  71.     (source "rickv2/RickDangIIHD")
  72.     (dest #dest)
  73. ))
  74.  
  75. (copyfiles
  76.     (help @copyfiles-help)
  77.     (source "RickDangIIHD.info")
  78.     (dest #dest)
  79. )
  80.  
  81. (copyfiles
  82.     (help @copyfiles-help)
  83.     (source "rickhd2.readme.info")
  84.     (dest #dest)
  85. )
  86.  
  87. (copyfiles
  88.     (help @copyfiles-help)
  89.     (source "rickhd2.readme")
  90.     (dest #dest)
  91. )
  92.  
  93. (message ("\nInsert %s disk 1 into drive %s !" @app-name #CI_drive))
  94.     (if (= #Rickd2_ver 0)
  95.         (if
  96.             (= 0 (run ("disk2file %ld \"%s/rd2.d1\" SKIPROB >con:0/0/450/200//CLOSE/WAIT" #CI_unit #dest )))
  97.             ("")
  98.             (abort "\"disk2file\" must be in your PATH !")
  99.         ))
  100.     (if (= #Rickd2_ver 1)
  101.         (if
  102.             (= 0 (run ("copy df%ld: df%ld:c/RICK2 to \"%s\" " #CI_unit #CI_unit #dest )))
  103.             ("")
  104.             (abort "\"\" must be in your PATH !")
  105.         ))
  106.  
  107. (exit)
  108.  
  109.